home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 1 / Gigarom Macintosh Archives (Quantum Leap)(CDRM1080320)(1993).iso / FILES / HYP / C-D / DeveloperStax.cpt / Developer Stack 1.2r / card_4015.txt < prev    next >
Text File  |  1989-02-26  |  1KB  |  77 lines

  1. -- card: 4015 from stack: in.2r
  2. -- bmap block id: 0
  3. -- flags: 4000
  4. -- background id: 3837
  5. -- name: FileName
  6. ----- HyperTalk script -----
  7. on closecard
  8.   hide message window
  9. end closecard
  10.  
  11.  
  12.  
  13. -- part 10 (button)
  14. -- low flags: 00
  15. -- high flags: A004
  16. -- rect: left=223 top=245 right=293 bottom=283
  17. -- title width / last selected line: 0
  18. -- icon id / first selected line: 27056 / 27056
  19. -- text alignment: 1
  20. -- font id: 0
  21. -- text size: 12
  22. -- style flags: 0
  23. -- line height: 16
  24. -- part name: Try it
  25. ----- HyperTalk script -----
  26. on mouseUp
  27.   if the optionkey is down then pass mouseup
  28.   put "Just select a file & it will return the full pathname"
  29.   put filename()
  30. end mouseUp
  31.  
  32.  
  33.  
  34. -- part contents for background part 6
  35. ----- text -----
  36.  
  37. This allows your HyperTalk scripts to request a filename via a Standard File Package dialog box.
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46. Thanks to:
  47. Steve Maller, Apple Computer.
  48. AppleLink: maller1 ‚Ä¢ Delphi: stevemaller ‚Ä¢ MCI Mail: smaller
  49.  
  50.  
  51. -- part contents for background part 5
  52. ----- text -----
  53. FileName
  54.  
  55. -- part contents for background part 10
  56. ----- text -----
  57. 1
  58.  
  59. -- part contents for background part 7
  60. ----- text -----
  61. Syntax:
  62.  
  63. FileName([<"fileType">])
  64. shows all files, or
  65.  
  66.  
  67. Returns the full path name of the file selected.
  68.  
  69. <"fileType"> is the 4 character type of the file you want to open.  If no type is specified, all files are shown.
  70.  
  71. For example:
  72. FileName("APPL") will show only applications
  73.  
  74. FileName("STAK") will show only stacks.
  75.  
  76. FileName("TEXT") will show only text documents.
  77.